####################################
#  ./redis.sh [key] 
#
#
####################################
#!/bin/bash
host="127.0.0.1"
port="6379"
if [ $# -eq 1 ];then
  if [ $1 == "info" ];then
		redis-cli -h $host -p $port info
	else
		# if input one arg then get the key values
		redis-cli -h $host -p $port   keys $1 |  xargs redis-cli -h $host -p $port get
   fi
else 
    redis-cli -h $host -p $port   keys "*"
fi
